/******************************************************************************
 Copyright (c) 2024-2025 Qualcomm Technologies International, Ltd.
 All Rights Reserved.
 Qualcomm Technologies International, Ltd. Confidential and Proprietary.

******************************************************************************/

#ifndef GATT_RAS_SERVER_MSG_HANDLER_H_
#define GATT_RAS_SERVER_MSG_HANDLER_H_

#include "gatt_ras_server_private.h"

#ifdef INSTALL_CHANNEL_SOUNDING_SUPPORT

/***************************************************************************
NAME
    rasServerGattMsgHandler

DESCRIPTION
    Handler for external messages sent to the library in the server role.
*/
void rasServerGattMsgHandler(void* task, MsgId id, Msg msg);

void rasServerCmMsgHandler(GRASS_T* rasServer, void *message);

void rasServerSendRangingData(GRASS_T *rasServer, ConnectionIdType cid, uint16 rangingCounter, uint16 handle);

void rasServerFreeRangingDataList(GRASS_T *rasServer, uint8 index_client);

void rasServerSetAllSegmentToTransmit(GRASS_T *rasServer, uint8 index_client);

#endif /* INSTALL_CHANNEL_SOUNDING_SUPPORT */

#endif /* GATT_RAS_SERVER_MSG_HANDLER_H_ */
